7d745cecebe949eedfbeb0ade4320bbca31613bc,platform/platform-api/src/com/intellij/notification/Notifications.java,Bus,invoke,#Project#Processor#,78
Before Change
return;
}
FrameStateManager.getInstance().getApplicationActive().doWhenDone(new Runnable() {
@Override
public void run() {
Application app = ApplicationManager.getApplication();
final MessageBus bus =
project == null ? (app.isDisposed() ? null : app.getMessageBus()) : (project.isDisposed() ? null : project.getMessageBus());
if (bus != null) {
notifyLaterIfNeeded(bus, fun);
}
}
});
}
private static void notifyLaterIfNeeded(final MessageBus bus,
After Change
}
FrameStateManager frameStateManager = FrameStateManager.getInstance();
if (frameStateManager != null) {
frameStateManager.getApplicationActive().doWhenDone(new Runnable() {
@Override
public void run() {
Application app = ApplicationManager.getApplication();
final MessageBus bus =
project == null ? app.isDisposed() ? null : app.getMessageBus() : project.isDisposed() ? null : project.getMessageBus();
if (bus != null) {
notifyLaterIfNeeded(bus, fun);
}
}
});
}
}